package com.example.tool.bean.business.wechat;

import com.example.tool.bean.wcaiexcel.WeComApiResponse;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class AddRecordsResponse extends WeComApiResponse {

    private List<CommonRecord> records=new ArrayList<>();

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class CommonRecord {
        @JsonProperty("record_id")
        private String recordId; // 记录ID
        private Map<String, List<AddRecordsRequest.Record.CellValue>> values; // 字段值
    }
}
